package com.glela.goods.model.vo;

import java.util.List;

import org.springframework.util.StringUtils;

import com.glela.goods.model.GoodsPrice;
import com.glela.goods.model.Product;
import com.glela.goods.model.SpecificationDetailVo;

public class ProductVo extends Product {

	private int inventoryNum;

	private String specName;// 规格名

	private int settlementPrice;

	private int salePrice;// 售价

	private long inventoryId;

	private int storeId;

	private String storeName = "";// 店铺 名字
	
	private GoodsPrice  goodsPrice;// 价格信息
	
	public String getPlanSaleTitle() {
		return planSaleTitle;
	}

	public void setPlanSaleTitle(String planSaleTitle) {
		this.planSaleTitle = planSaleTitle;
	}

	private String planSaleTitle ;
	
	

	public ProductVo() {
	}

	public ProductVo(Product product) {
		super.setId(product.getId());
		super.setGoodId(product.getGoodId());
		super.setBarCode(product.getBarCode());
		super.setProductBn(product.getProductBn());
		super.setSpecInfo(product.getSpecInfo());
		super.setCreateTime(product.getCreateTime());
		super.setUpdateTime(product.getUpdateTime());
		super.setStatus(product.getStatus());
	}

	public long getInventoryId() {
		return inventoryId;
	}

	public void setInventoryId(long inventoryId) {
		this.inventoryId = inventoryId;
	}

	public String getSpecName() {
		return specName;
	}

	public void setSpecName(String specName) {
		this.specName = specName;
	}

	private List<SpecificationDetailVo> specDescList;

	public int getInventoryNum() {
		return inventoryNum;
	}

	public void setInventoryNum(int inventoryNum) {
		this.inventoryNum = inventoryNum;
	}

	public int getSettlementPrice() {
		return settlementPrice;
	}

	public void setSettlementPrice(int settlementPrice) {
		this.settlementPrice = settlementPrice;
	}

	public List<SpecificationDetailVo> getSpecDescList() {
		return specDescList;
	}

	public void setSpecDescList(List<SpecificationDetailVo> specDescList) {
		this.specDescList = specDescList;
	}

	public int getStoreId() {
		return storeId;
	}

	public void setStoreId(int storeId) {
		this.storeId = storeId;
	}

	public String getStoreName() {
		return storeName;
	}

	public void setStoreName(String storeName) {
		if (StringUtils.isEmpty(storeName)) {
			this.storeName = "";
		} else {
			this.storeName = storeName;
		}
	}

	public int getSalePrice() {
		return salePrice;
	}

	public void setSalePrice(int salePrice) {
		this.salePrice = salePrice;
	}

	public GoodsPrice getGoodsPrice() {
		return goodsPrice;
	}

	public void setGoodsPrice(GoodsPrice goodsPrice) {
		this.goodsPrice = goodsPrice;
	}

}
